function add_todo(){
    const input = document.getElementById("todo_input")
    const val = input.value

    const ul = document.getElementById("list")
    const item = document.createElement("li")

    item.textContent =val
    ul.appendChild(item)
    input.value=null
}